package sd.czw.com.mmgapp.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by czw
 * desc 描述：
 * on 2017/7/14.
 */
public class SpUtils {

    public static final String TOKEN = "token";
    public static final String USERNAME = "username";

    public static SharedPreferences setUsername(Context context){
        return context.getSharedPreferences(USERNAME,Context.MODE_PRIVATE);
    }
    public static SharedPreferences setToken(Context context){
        return context.getSharedPreferences(TOKEN,Context.MODE_PRIVATE);
    }

}
